﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using popLib;

namespace PhotoMgr.src.common
{
    class Configuration : popLib.ExtensionClass.ApplicationSetting
    {
        private static Configuration _instance;
        public static Configuration Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new Configuration();
                return _instance;
            }
        }

        public override void InitDefaultValue()
        {
            ItemPerPage = 100;
            ApplicationTitle = "Photo Score Management System";
            PhotoDirectory = "PhotoLibrary";
            PhotoPath = FileLib.getFullPath(PhotoDirectory);
            ServerPath = FormLib.getAppSettingINI("Settings", "ServerPath", "");
        }
                
        public int ItemPerPage { get; set; }
        public string ApplicationTitle { get; set; }
        public string PhotoPath { get; set; }
        public string PhotoDirectory { get; set; }
        public string ServerPath { get; set; }
    }
}
